<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
<title>会员中心-${web.title}</title>
<link href="/template/default/css/main.css" type="text/css" rel="stylesheet" media="screen and (min-width: 800px)" >
<link href="/template/default/css/main_m.css" type="text/css" rel="stylesheet" media="screen and (max-width: 800px)" >
<link href="/template/default/css/form/index.css" type="text/css" rel="stylesheet" media="screen and (min-width: 800px)">
<link href="/template/default/css/form/index_m.css" type="text/css" rel="stylesheet" media="screen and (max-width: 800px)">
<link href="/resource/css/grayscale.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/grayscale.js"></script>
<script type="text/javascript" src="/template/default/js/main.js"></script>
</head>

<body>
	<#include "top.html">
	<div class="panel">
		<div class="middle" style=background-color:white;>
			<center><h1>${form.name}</h1></center>
       		<a href="/form/submit?formid=${form.id}" class="formsubmit">
        		<img src="/template/default/image/formsubmit.gif" />
        		我要${form.action}
       		</a>
			<div class="formdatas">
        	<table cellspacing="1" cellpadding="4" class="tablelist">
		        <tr>
		            <#list formfields as formfield>
		            	<th>${formfield.title}</th>
		            </#list>
	                <th>提交时间</th>
	                <th>状态</th>
		            <th>满意度</th>
	                <th>操作</th>
		        </tr>
		        <#list formdatas as formdata>
					<tr<#if formdata_index % 2 == 1> class="splittr"</#if>>
			            <#list formfields as formfield>
			            	<#list formdata.formDataValues as value>
			            		<#if value.formField.id == formfield.id>
			            			<td align="center">${value.contents!?html}</th>
			            			<#break>
			            		</#if>
			            	</#list>
			            </#list>
		            	<td align="center">${formdata.subtime?string('yyyy-MM-dd HH:mm:ss')}</td>
		            	<td align="center">
		            		<#if !formdata.result??><span style="color:red">未处理</span>
	                        <#else><span style="color:green">已处理</span>
	                        </#if>
		            	</td>
			            <td align="center"><#if formdata.formDataAtisfaction??>${formdata.formDataAtisfaction.name}</#if></td>
						<td align="center">
							<#if formdata.result??><a href="detail?formid=${form.id}&formdataid=${formdata.id}">详细</a></#if>
		                    <a href="deletedata?formid=${form.id}&formdataid=${formdata.id}" onclick="return confirm('确定删除吗？')">删除</a>
					    </td>
					</tr>
		        </#list>
		    </table>
			</div>
	  	</div>
		<#include "bottom.html">
	</div>
</body>
</html>
